package com.cheng.example.book.advise151.chap2;


/**
 * 谨慎包装类型的大小比较
 */
public class Client27 {
    public static void main(String[] args) {
        Integer i = new Integer(100);
        Integer j = new Integer(100);
        compare(i, j);
    }

    public static void compare(Integer i, Integer j) {
        System.out.println(i.compareTo(j));
        System.out.println(i > j);
        System.out.println(i < j);

    }
}